package 创建者模式.singleton.demo饿汉式1;

/**
 * @Description TODO
 * @Author shallow
 * @Date 2023/3/1 13:50
 */

public class Client {
    public static void main(String[] args) {
        //创建Singleton类的需
        Singleton instance = Singleton.getInstance();
        Singleton instance1 = Singleton.getInstance();
        //判断力两个是不是同一个对象  ==判断地址
        System.out.println(instance == instance1);
    }
}
